#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a = 0, b = 0, c = 0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;
	scanf("%d %d %d", &a, &b, &c);
	if (a < b)
	{
		e = a;
		a = b;
		b = e;
		if(a<c)
		{
			f = a;
			a = c;
			c = f;
			if (b < c)
			{
				g = b;
				b = c;
				c = g;


			}
		}
		else{
			if (b < c)
			{
				j = b;
				b = c;
				c = j;
		}
		}
	}
	else
	{
		if(a<c)
		{
			h = a;
			a = c;
			c = h;
		
			if (b < c)
			{
				d = b;
				b = c;
				c = d;
			}
		}
		else
			if (b < c)
			{
				i = b;
				b = c;
				c = i;
			}

	}
	printf("%d %d %d", a, b, c);
	return 0;
}